package com.cykj.v_m_sprintboot.service;

import com.cykj.v_m_sprintboot.bean.TbLossApplication;
import com.cykj.v_m_sprintboot.bean.TbOperator;
import com.cykj.v_m_sprintboot.bean.TbReturnApplication;
import com.cykj.v_m_sprintboot.bean.TbSupplier;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
/**
 * @author: wei
 * @date: 2021/9/26 20:20
 */


public interface ApproveService {
    List<TbReturnApplication> findReturnApplication(@Param(value = "warehouseStateId") RowBounds rowBounds);

    int findid();

    boolean changRAstate(@Param(value = "id") Integer id,
                         @Param(value = "applicationState") String applicationState,
                         @Param(value = "remarks") String remarks);

    //退货查询
    List<TbReturnApplication> findRAppDate(@Param(value = "startDate") String startDate,
                                           @Param(value = "overDate") String overDate,
                                           RowBounds rowBounds);






    //    耗损审批-----------
    List<TbLossApplication> findLossApplication(@Param(value = "id") RowBounds rowBounds);

    int finLossdid();

    boolean changLossstate(@Param(value = "id") Integer id,
                           @Param(value = "approveState") String approveState,
                           @Param(value = "remarks") String remarks);

    //损耗查询
    List<TbLossApplication> findLossDate(@Param(value = "startDate") String startDate,
                                         @Param(value = "overDate") String overDate,
                                         RowBounds rowBounds);


    //    供应商审批-----------
    List<TbSupplier> findSuppApplication(@Param(value = "supplierId") RowBounds rowBounds);

    int finSuppdid();

    boolean changSuppstate(@Param(value = "supplierId") Integer supplierId,
                           @Param(value = "approveState") String approveState,
                           @Param(value = "remarks") String remarks);

    //运供应商查询
    List<TbSupplier> findSuDate(@Param(value = "startDate") String startDate,
                                @Param(value = "overDate") String overDate,
                                RowBounds rowBounds);


    //    运营商审批---------------------
    boolean changOAstate(@Param(value = "operatorId") Integer operatorId,
                         @Param(value = "approveState") String approveState,
                         @Param(value = "remarks") String remarks);

    //运营商查询
    List<TbOperator> findOpData(@Param(value = "startDate") String startDate,
                                @Param(value = "overDate") String overDate,
                                RowBounds rowBounds);
}
